package com.neugh.service.impl;

import com.neugh.entity.Collect;
import com.neugh.entity.House;
import com.neugh.mapper.CollectMapper;
import com.neugh.service.CollectService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author sot
 * @since 2020-05-15
 */
@Service
public class CollectServiceImpl extends ServiceImpl<CollectMapper, Collect> implements CollectService {

    @Override
    public boolean addCollect(Integer houseId, Integer userId) {
        return this.baseMapper.addCollect(houseId,userId);
    }

    @Override
    public List<House> selectList(Integer userId){
        return this.baseMapper.selectList(userId);
    }
}
